/**
 * 水费和电费
 */
export const tableOptionPayment1 = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  searchMenuSpan: 6,
  searchBtnText: "查询",
  emptyBtnText: "重置",
  addBtn: false,
  editBtn: false,
  // viewBtn: true,
  delBtn: false,
  columnBtn: false,
  menu: false,
  dialogEscape: false,
  dialogClickModal: false,
  refreshBtn: false,
  column: [
    {
      label: "应缴月份",
      prop: "payCost",
      hide: false
    },
    {
      label: "房屋类型",
      prop: "buildingType",
      hide: false,
      formatter:function(row, value , label, column){
        switch (value){
          case 'complex_building':{
            return '形象店';
          }
          case 'exhibition':{
            return '综合楼';
          }
          default :{
            return '展场';
          }
        }
      }
    },
    {
      label: "房屋编号",
      prop: "ctContractProject"
    },
    {
      label: "总面积(㎡)",
      prop: "projectArea",
    },
    {
      label: "上期读数",
      prop: "meterStartPoint",
    },
    {
      label: "本期读数",
      prop: "meterEndPoint",
    },
    {
      label: "单价(元)",
      prop: "costUnit",
    },
    {
      label: "费用(元)",
      prop: "monthFee",
    },
    {
      label: "状态",
      prop: "comeOutTime",
    },
    {
      label: "缴费时间",
      prop: "paymentTime",
    }

  ]
};

/**
 * 租金、市场管理服务费、租赁保证金、会议室租赁保证金、活动场地租赁保证金
 */
export const tableOptionPayment2 = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  searchMenuSpan: 6,
  searchBtnText: "查询",
  emptyBtnText: "重置",
  addBtn: false,
  editBtn: false,
  // viewBtn: true,
  delBtn: false,
  columnBtn: false,
  menu: false,
  dialogEscape: false,
  dialogClickModal: false,
  refreshBtn: false,
  column: [
    {
      label: "应缴月份",
      prop: "payCost",
      hide: false
    },
    {
      label: "房屋类型",
      prop: "buildingType",
      hide: false,
      formatter:function(row, value , label, column){
        switch (value){
          case 'complex_building':{
            return '形象店';
          }
          case 'exhibition':{
            return '综合楼';
          }
          default :{
            return '展场';
          }
        }
      }
    },
    {
      label: "房屋编号",
      prop: "projectNumber"
    },
    {
      label: "总面积(㎡)",
      prop: "projectArea",
    },
    {
      label: "租赁结束日期",
      prop: "rentEndTime",
    },
    {
      label: "租赁开始日期",
      prop: "rentStartTime",
    },
    {
      label: "单价 (元/㎡.月)",
      prop: "unitPriceId",
    },
    {
      label: "税率",
      prop: "incTaxTotalAmount",
    },
    {
      label: "收费时间",
      prop: "paymentTime",
    },{
      label: "小计(元)",
      prop: "comeOutTime",
    }
  ]
};

/**
 * 其他费用
 */
 export const tableOptionPayment3 = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  searchMenuSpan: 6,
  searchBtnText: "查询",
  emptyBtnText: "重置",
  addBtn: false,
  editBtn: false,
  // viewBtn: true,
  delBtn: false,
  columnBtn: false,
  menu: false,
  dialogEscape: false,
  dialogClickModal: false,
  refreshBtn: false,
  column: [
    {
      label: "费用类型",
      prop: "costType",
      hide: false
    },
    {
      label: "房屋类型",
      prop: "buildingType",
      formatter:function(row, value , label, column){
        switch (value){
          case 'complex_building':{
            return '形象店';
          }
          case 'exhibition':{
            return '综合楼';
          }
          default :{
            return '展场';
          }
        }
      }
    },
    {
      label: "房屋楼号/区域",
      prop: "area",
    },
    {
      label: "房屋编号",
      prop: "projectNumber",
    },
    {
      label: "费用金额(元)",
      prop: "money",
    },
    {
      label: "费用生成时间",
      prop: "createDate",
    },
    {
      label: "小计(元)",
      prop: "money",
    }
  ]
};

/**
 * 停车费
 */
 export const tableOptionPayment4 = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  searchMenuSpan: 6,
  searchBtnText: "查询",
  emptyBtnText: "重置",
  addBtn: false,
  editBtn: false,
  // viewBtn: true,
  delBtn: false,
  columnBtn: false,
  menu: false,
  dialogEscape: false,
  dialogClickModal: false,
  refreshBtn: false,
  column: [
    {
      label: "车牌号",
      prop: "carNumber",
      hide: false
    },
    {
      label: "车辆品牌",
      prop: "carBrand",
      hide: false
    },
    {
      label: "停车费",
      prop: "parkingFee",
      hide: false
    },
    {
      label: "车架号",
      prop: "carFrameNo"
    },
    {
      label: "RFID",
      prop: "rfId"
    },
    {
      label: "缴费状态",
      prop: "isPayment",
      slot: "isPayment"
    },
    {
      label: "缴费时间",
      prop: "feesTime",
    }
  ]
};
